<?php
include_once "conn.php";
$id = $_POST['id'];
$main = new main();
$result = $main->del('admin','id',$id);
if ($result==1){
     $a['error']= 1;//成功
}
else{
     $a['error']=0;
}
echo json_encode($a);